﻿using System;
using System.Windows;
using System.Windows.Threading;

namespace Phone.Framework.Threads
{
    public class UIThread
    {
        public static void Invoke(Action action)
        {
            Deployment.Current.Dispatcher.BeginInvoke(action, null);
        }

        public static Dispatcher Dispatcher
        {
            get
            {
                return Deployment.Current.Dispatcher;
            }
        }
    }
}
